package com.libc.hospital;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.time.Instant;
import java.time.temporal.ChronoUnit;

/**
 * @fileRelativePath: HospitalManagedemoApplication.java
 * @Date: Created on 2022/3/17  12:27  <br>
 * @author: LiBencheng<br>
 * @version: 1.0<br>
 */
@SpringBootApplication
public class ManageApplication
{

    public static void main(String[] args)
    {
        Instant startuptime = Instant.now();
        System.err.println("开始启动：" + startuptime);
        System.setProperty("startuptime", startuptime.getEpochSecond() + "");
        SpringApplication.run(ManageApplication.class, args);
        System.err.println(String.format("启动完成时间是：{[%s]}一共运行：{[%s ms]}",
                                         Instant.now(), ChronoUnit.MILLIS.between(startuptime, Instant.now())));

    }
}
